// components/home_swiper.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {

    },

    /**
     * 组件的初始数据
     */
    data: {
        imgUrls: [
            "../../images/swiper/1.png",
            "../../images/swiper/3.png",
            "../../images/swiper/2.png"
          ],
          indicatorDots: true,  //是否显示面板指示点
          autoplay: true,      //是否自动切换
          interval: 3000,       //自动切换时间间隔
          duration: 1000,       //滑动动画时长
    },

    /**
     * 组件的方法列表
     */
    methods: {
      bindchange: function (e) {
        // console.log(e.detail.current)
        this.setData({ current: e.detail.current })
      },
    
    }
})
